﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wpf.Models;

namespace Wpf.Models
{
    public class PatInfo
    {
        /// <summary>
        /// 卡号
        /// </summary>
        public string CardNo { get; set; }
        /// <summary>
        /// 1.身份证，2.医保卡/社保卡，3.就诊卡/自费卡，9.直接扫码
        /// </summary>
        public string CardType { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public string Sex { get; set; }
        /// <summary>
        /// 民族
        /// </summary>
        public string Folk { get; set; }
        /// <summary>
        /// 出生日期
        /// </summary>
        public string Birth { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        public string ID { get; set; }
        /// <summary>
        /// 签发机关
        /// </summary>
        public string Organ { get; set; }
        /// <summary>
        /// 有效期限起
        /// </summary>
        public string ValidStart { get; set; }
        /// <summary>
        /// 有效期限止
        /// </summary>
        public string ValidEnd { get; set; }
        /// <summary>
        /// 照片
        /// </summary>
        public byte[] Photo { get; set; }
        /// <summary>
        /// 费别编码
        /// </summary>
        public string ChargeType { get; set; }
        /// <summary>
        /// 发卡地区行政区划代码   2023-06-19
        /// </summary>
        public string CardAreaCode { get; set; }
        /// <summary>
        /// 卡识别码   2023-06-19
        /// </summary>
        public string CardIdentificationCode { get; set; }
        /// <summary>
        /// 社会保障号码-医保卡   2023-09-05
        /// </summary>
        public string SocialSecurityNo { get; set; }

        /// <summary>
        /// 社保手册号 赵明亮 2023-09-26
        /// </summary>
        public string IC_NO { get; set; }

    }
    public class CardInfo
    {
        public bool Result { get; set; }
        public string ErrMsg { get; set; }
        public PatInfo Pat { get; set; }
        /// <summary>
        /// 患者詳情
        /// </summary>
        public PatientInfo PatDet { get; set; }
        /// <summary>
        /// 操作：1刷卡 2刷新
        /// </summary>
        public int OpeState { get; set; } = 1;
    }
}
